package md.draw;

import javax.microedition.lcdui.Graphics;

import md.objects.Enemy;
import md.objects.EnemyWave;

public class SpritePainter {

	public static int i;
	
	public final static void drawEnemy(Graphics g, Enemy e) {
		if(e.alive) {
			g.setColor(255, 0, 0);
			g.drawRect(e.x-2, e.y-2, 4, 4);
		}
	}

	public final static void drawWave(Graphics g, EnemyWave w) {
		for(i=0;i<w.enemyCount;i++) {
			drawEnemy(g, w.enemies[i]);
		}
	}
}
